//
//  CustomTableViewCell.m
//  55.cell左滑功能
//
//  Created by chenleping on 2019/2/2.
//  Copyright © 2019年 DSY. All rights reserved.
//

#import "CustomTableViewCell.h"

@implementation CustomTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UISwipeGestureRecognizer * swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe)];
        [swipeRight setDirection:UISwipeGestureRecognizerDirectionRight];
        [self addGestureRecognizer:swipeRight];
    }
    return self;
}
- (void)swipe{
    NSLog(@"右滑...");
    self.editing = NO;
}
@end
